package com.ditri.controller;

import com.ditri.server.HelloFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: edxuanlen
 * @Date: 2020/7/25:20:50
 */

@RestController
@RefreshScope
public class OpenFeignController {

    @Autowired
    private HelloFeignService helloFeignService;

    @GetMapping("hello")
    public String helloRibbon() {
        return helloFeignService.helloFeign();
    }
}
